package org.jeecg.modules.demo.houseOrder.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 入库单
 * @Author: jeecg-boot
 * @Date:   2021-12-13
 * @Version: V1.0
 */
@Data
@TableName("warehouse_order")
@ApiModel(value="warehouse_order对象", description="入库单")
public class HouseOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**订单状态（0：未审，1：已审，2：已关闭）*/
    @Excel(name = "订单状态（0：未审，1：已审，2：已关闭）", width = 15)
    @ApiModelProperty(value = "订单状态（0：未审，1：已审，2：已关闭）")
    @Dict(dicCode = "checkState")
    private java.lang.Integer shenhe;
	/**删除状态（0：正常，1：已删）*/
    @Excel(name = "删除状态（0：正常，1：已删）", width = 15)
    @ApiModelProperty(value = "删除状态（0：正常，1：已删）")
    private java.lang.Integer shanchu;
	/**仓库编码(采购)*/
    @Excel(name = "仓库编码(采购)", width = 15)
    @ApiModelProperty(value = "仓库编码(采购)")
    private java.lang.String puWhNum;
	/**入库单编号*/
    @Excel(name = "入库单编号", width = 15)
    @ApiModelProperty(value = "入库单编号")
    private java.lang.String puWoNo;
	/**费用单（未生成为：0张）*/
    @Excel(name = "费用单（未生成为：0张）", width = 15)
    @ApiModelProperty(value = "费用单（未生成为：0张）")
    private java.lang.Integer feiyong;
	/**业务员*/
    @Excel(name = "业务员", width = 15)
    @ApiModelProperty(value = "业务员")
    @Dict(dictTable = "SYS_USER",dicCode = "ID",dicText = "REALNAME")
    private java.lang.String saleman;
	/**含税单价*/
    @Excel(name = "含税单价", width = 15)
    @ApiModelProperty(value = "含税单价")
    private java.math.BigDecimal hsdj;
	/**数量*/
    @Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private java.math.BigDecimal poTotail;
	/**含税金额*/
    @Excel(name = "含税金额", width = 15)
    @ApiModelProperty(value = "含税金额")
    private java.math.BigDecimal hsje;
	/**单价*/
    @Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private java.math.BigDecimal wsdj;
	/**金额*/
    @Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private java.math.BigDecimal wsje;
	/**税额*/
    @Excel(name = "税额", width = 15)
    @ApiModelProperty(value = "税额")
    private java.math.BigDecimal psTax;
	/**税率*/
    @Excel(name = "税率", width = 15)
    @ApiModelProperty(value = "税率")
    @Dict(dicCode = "tax_rate")
    private java.math.BigDecimal psTaxrat;
	/**分摊后单价（可变）*/
    @Excel(name = "分摊后单价（可变）", width = 15)
    @ApiModelProperty(value = "分摊后单价（可变）")
    private java.math.BigDecimal ftwsdj;
	/**分摊后金额（可变）*/
    @Excel(name = "分摊后金额（可变）", width = 15)
    @ApiModelProperty(value = "分摊后金额（可变）")
    private java.math.BigDecimal ftwsje;
	/**分摊后含税单价（可变）*/
    @Excel(name = "分摊后含税单价（可变）", width = 15)
    @ApiModelProperty(value = "分摊后含税单价（可变）")
    private java.math.BigDecimal fthsdj;
	/**分摊后含税金额（可变）*/
    @Excel(name = "分摊后含税金额（可变）", width = 15)
    @ApiModelProperty(value = "分摊后含税金额（可变）")
    private java.math.BigDecimal fthsje;
	/**分摊后税额（可变）*/
    @Excel(name = "分摊后税额（可变）", width = 15)
    @ApiModelProperty(value = "分摊后税额（可变）")
    private java.math.BigDecimal ftse;
	/**总成本*/
    @Excel(name = "总成本", width = 15)
    @ApiModelProperty(value = "总成本")
    private java.math.BigDecimal totalcost;
	/**分摊后总成本（可变）*/
    @Excel(name = "分摊后总成本（可变）", width = 15)
    @ApiModelProperty(value = "分摊后总成本（可变）")
    private java.math.BigDecimal fttotalcost;
	/**费用金额*/
    @Excel(name = "费用金额", width = 15)
    @ApiModelProperty(value = "费用金额")
    private java.math.BigDecimal fyje;
	/**现存量*/
    @Excel(name = "现存量", width = 15)
    @ApiModelProperty(value = "现存量")
    private java.lang.Integer standingstock;
	/**计量单位*/
    @Excel(name = "计量单位", width = 15)
    @ApiModelProperty(value = "计量单位")
    private java.lang.String measureunit;
	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private java.lang.String id;
	/**入库单编号*/
    @Excel(name = "入库单编号", width = 15)
    @ApiModelProperty(value = "入库单编号")
    private java.lang.String woNo;
	/**结算单编号*/
    @Excel(name = "结算单编号", width = 15)
    @ApiModelProperty(value = "结算单编号")
    private java.lang.String pusNo;
	/**合同编号*/
    @Excel(name = "合同编号", width = 15)
    @ApiModelProperty(value = "合同编号")
    private java.lang.String puConNo;
	/**采购订单号*/
    @Excel(name = "采购订单号", width = 15)
    @ApiModelProperty(value = "采购订单号")
    private java.lang.String poOrder;
	/**仓库编码（产品）*/
    @Excel(name = "仓库编码（产品）", width = 15)
    @ApiModelProperty(value = "仓库编码（产品）")
    private java.lang.String proWhNum;
	/**产品入库单编号*/
    @Excel(name = "产品入库单编号", width = 15)
    @ApiModelProperty(value = "产品入库单编号")
    private java.lang.String proWoNo;
	/**仓库编码*/
    @Excel(name = "仓库编码", width = 15)
    @ApiModelProperty(value = "仓库编码")
    @Dict(dictTable = "YX_WAREHOUSE",dicCode = "WH_NUM",dicText = "WH_NAME")
    private java.lang.String whNum;
	/**产品批号*/
    @Excel(name = "产品批号", width = 15)
    @ApiModelProperty(value = "产品批号")
    private java.lang.String prdBn;
	/**质检单编号*/
    @Excel(name = "质检单编号", width = 15)
    @ApiModelProperty(value = "质检单编号")
    private java.lang.String qoNum;
	/**入库量*/
    @Excel(name = "入库量", width = 15)
    @ApiModelProperty(value = "入库量")
    private java.lang.Double qoQuantity;
	/**创建日期*/
    @Excel(name = "创建日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date woDate;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

    private String zhilzbjson;

    private String zhilzb;
    /**
     * 租户ID
     */
    private Integer tenantId;
    private Integer zhzt;
    private  String tradecode;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date shTime;


    private Integer isMerge;


    private BigDecimal zgsl;
    private BigDecimal zxcb;
    private BigDecimal zgdj;
    private BigDecimal fpsl;
    private BigDecimal fpje;
    private BigDecimal fpdj;
    private Integer documentType;
    /**
     * 创建人
     */
    private String createBy;


    private String sysOrgCode;
}
